<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>报告</title>
	<link rel="stylesheet" href="./font_eid4zq69fqbsm7vi/iconfont.css">
	<link rel="stylesheet" href="./css/nav_footer.css">
	<link rel="stylesheet" href="./css/detail.css">
</head>
<body>
	<div class="wrap">
		<div class="nav">
			<div class="nav-header">
				<div class="nav-title">空间激光干涉仪</div>
				<div class="nav-search">
					<input type="text" placeholder="请输入关键词">
					<i class="iconfont icon-search icon-position"></i>
				</div>
			</div>
			<div class="nav-list">
				<ul id="show" style="width:100px;height:60px;font:12px/20px 宋体;">
					<li><a href="#">分类主题</a></li>
					
				</ul>
			</div>
		</div>
		<div class="content">
			<div class="big-img"></div>
			<div class="main-content">
				<div class="dtitle">书本展示</div>
				<hr>
				<div id="homeshow">
					
					
				</div>
			</div>
		</div>
		<div class="footer">中国科学院上海光学精密研究所</div>
	</div>
	<script src="./js/jquery.min.js"></script>
<script>
	function GetQueryString(name)
{
	var reg = new RegExp("(^|&)"+ name +"=([^&]*)(&|$)");
	var r = window.location.search.substr(1).match(reg);
	 if(r!=null)return  unescape(r[2]); return null;
}
	var id=GetQueryString("id");
	var sp=GetQueryString("sp");
	
	<!-- sp1  会议论文   sp2 报告 sp3 专业图书  sp4 期刊论文   sp5 专题会议  sp6 专利 sp7 重要机构   sp8 重要期刊 sp9 重要人物   -->  
function showcontent(id,sp){
    if(sp==2||sp==1||sp==4||sp==3){
		$(document).ready(function(){
		
		$.ajax({
        type:"get",
        url:"http://106.75.94.58:8080/home/findNO.action?i_id="+id+"",
        dataType: "json",
        success: function(data){	
			console.log(data);
			var txt=data;
		    
			 txt=JSON.stringify(txt); //可以将json对象转换成json对符串   
			$("#homeshow").html("书本信息"+txt+"" );
		}
    });
	})
		
	}
	if(sp==5){
		$(document).ready(function(){
		
		$.ajax({
        type:"get",
        url:"http://106.75.94.58:8080/home/findNO_Item_info.action?i_id="+id+"",
        dataType: "json",
        success: function(data){	
			console.log(data);
			var txt=data;
		    
			 txt=JSON.stringify(txt); //可以将json对象转换成json对符串   
			$("#homeshow").html("书本信息"+txt+"" );
		}
    });
	})
		
	}
	if(sp==6){
		$(document).ready(function(){
		
		$.ajax({
        type:"get",
        url:"http://106.75.94.58:8080/home/findNO_Patents_info.action?i_id="+id+"",
        dataType: "json",
        success: function(data){	
			console.log(data);
			var txt=data;
		    
			 txt=JSON.stringify(txt); //可以将json对象转换成json对符串   
			$("#homeshow").html("书本信息"+txt+"" );
		}
    });
	})
		
	}
	
	
	
	
	
	
	
	
}
showcontent(id,sp);
	
	
	
	
	</script>
</body>
</html>